package com.princess.demok.ui.demo

import android.app.Activity
import android.content.Intent
import com.princess.demok.R
import com.princess.demok.base.view.MyBaseActivity
import com.google.android.material.bottomsheet.BottomSheetBehavior
import kotlinx.android.synthetic.main.activity_bottomout.*

/**
 * @author: xha
 * @date: 2021/8/26 11:18
 * @Description:
 */
class BottomOutActivity : MyBaseActivity() {

    companion object {
        @JvmStatic
        fun start(
            context: Activity
        ) {
            val starter = Intent(context, BottomOutActivity::class.java)
            context.startActivity(starter)
        }
    }

    override fun getLayoutId(): Int? {
        return R.layout.activity_bottomout
    }

    override fun initOnCreate() {

         val bottomSheetBehavior =  BottomSheetBehavior.from(bottom_scroll)
        bottomSheetBehavior.isHideable = false
        bottomSheetBehavior.peekHeight = 50
        bottomSheetBehavior.state = BottomSheetBehavior.STATE_DRAGGING
    }
}